<%-- 
    Document   : editMember
    Created on : Jun 3, 2014, 4:21:31 PM
    Author     : Phan Van Duong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Update Member</h1>
        <form action="MemberController?task=update" method="post">
            <table>
                <tr>
                    <td>User ID</td>
                    <td><input name="txtUserId" value="${param.userId}" readonly="true"/></td>
                </tr>
                <tr>
                    <td>Username</td>
                    <td><input name="txtUser" value="${param.username}"/></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input name="txtPass" type="password" value="${param.password}"/></td>
                </tr>
                <tr>
                    <td>Re password</td>
                    <td><input name="txtRepass" type="password"/></td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td><input name="txtPhone" value="${param.phone}"/></td>
                </tr>
                <tr>
                    <td>Birthday</td>
                    <td><input name="txtBirth" value="${param.birthday}"/></td>
                </tr>
                <tr>
                    <td>Sex</td>
                    <td>
                        <input type="radio" name="rdSex" value="Male" checked/>Male
                        <c:if test="${param.sex eq 'Female'}">
                            <c:set var="checked" value="checked"/>
                        </c:if>
                        <input type="radio" name="rdSex" value="Female" ${checked}/>Female
                    </td>
                </tr>
                <tr>
                    <td>Address</td>
                    <td><input name="txtAddress" value="${param.address}"/></td>
                </tr>
                <tr>
                    <td>Address</td>
                    <td><input name="txtJoinDate" value="${param.joindate}" readonly="true"/></td>
                </tr>
                <tr>
                    <td>Status</td>
                    <td>
                        <input type="radio" name="rdStatus" value="1" checked/>Active
                        <c:if test="${param.status eq '2'}">
                            <c:set var="checkedPause" value="checked"/>
                        </c:if>
                        <input type="radio" name="rdStatus" value="2" ${checkedPause}/>Pause
                        <c:if test="${param.status eq '3'}">
                            <c:set var="checkedDelete" value="checked"/>
                        </c:if>
                        <input type="radio" name="rdStatus" value="3" ${checkedDelete}/>Delete
                    </td>
                </tr>
                 <tr>
                     <td><input type="submit" value="Update"/></td>
                     <td><input type="reset" value="Reset"/></td>
                </tr>
            </table>
        </form>
    </body>
</html>
